Skip to content

Conversation

@NicolasHug
Copy link
Contributor

No description provided.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 3, 2025
// Set to a positive number to have a cache of that size.
const int MAX_CONTEXTS_PER_GPU_IN_CACHE = -1;
std::vector<AVBufferRef*> g_cached_hw_device_ctxs[MAX_CUDA_GPUS];
std::vector<_avbuffer_ref*> g_cached_hw_device_ctxs[MAX_CUDA_GPUS];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AVBufferRef should remain Pascal case

} else {
dst = allocateEmptyHWCTensor(height, width, videoStreamOptions.device);
dst =
allocate_empty_h_w_c_tensor(height, width, video_stream_options.device);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below, I'd find it easier if we wrote this as allocate_empty_hwc_tensor() and nppi_nv12_to_rgb_8u_p2c3r(). Basically, we'll want to be careful about how to turn a sequence of all caps into snake case.

@NicolasHug NicolasHug closed this Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants